package com.message.notify;

import com.message.Message;
import com.message.constant.Host;
import com.message.constant.MessageType;
import lombok.Data;

/**
 * @author linyu.dai
 * @project rpc
 * @description 注册中心通知 各个客户端服务下线的信息
 * @creat 2022/11/29 11:01:39
 */
@Data
public class RegisterNotifyMessage extends Message {

    private String serverName;

    private int notifyType;

    //消息为服务上线时存在
    private Host host;

    @Override
    public int getMessageType() {
        return MessageType.REGISTER_NOTIFY_MESSAGE;
    }
}
